import request from '@/utils/request';

// moka水晶列表
export function listData(query) {
  return request({
    url: `/admin/game/lottery3`,
    method: 'get',
    params: query
  });
}

// 新增、编辑
export function addOrEdit(query) {
  return request({
    url: `/admin/game/lottery3`,
    method: 'post',
    data: query
  });
}

// 更改状态
export function editStatus(query,id) {
  return request({
    url: `/admin/game/lottery3/${id}/status`,
    method: 'put',
    data: query
  });
}

// 礼物信息
export function giftList(id) {
  return request({
    url: `/admin/game/lottery3/gift/${id}`,
    method: 'get',
  });
}

// 数据分析
export function statistics(query) {
  return request({
    url: `/admin/game/lottery3/statistics`,
    method: 'get',
    params: query
  });
}

// 用户数据记录
export function records(query) {
  return request({
    url: `/admin/game/lottery3/user/records`,
    method: 'get',
    params: query
  });
}

